package com.github.shiqiyue.app.common.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/***
 * 前端分页请求参数
 * @author wenyao.wu
 */
@ApiModel
public class BasePageReq {

    @NotNull(message = "current不能为空")
    @ApiModelProperty("*第几页")
    private Integer current;

    @NotNull(message = "size不能为空")
    @Max(value = 1000, message = "size最多1000")
    @ApiModelProperty("*每页几条记录")
    private Integer size;


    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
